\hypertarget{format__csd_8c}{}\doxysubsection{extern/libembroidery/src/formats/format\+\_\+csd.c File Reference}
\label{format__csd_8c}\index{extern/libembroidery/src/formats/format\_csd.c@{extern/libembroidery/src/formats/format\_csd.c}}
{\ttfamily \#include $<$stdio.\+h$>$}\newline
{\ttfamily \#include $<$string.\+h$>$}\newline
{\ttfamily \#include $<$math.\+h$>$}\newline
{\ttfamily \#include \char`\"{}../embroidery\+\_\+internal.\+h\char`\"{}}\newline
\doxysubsubsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define \mbox{\hyperlink{format__csd_8c_a4fcf3ace27e69d89af9b5e3e786c7fbe}{Csd\+Sub\+Mask\+Size}}~479
\item 
\#define \mbox{\hyperlink{format__csd_8c_af849ef7c88e1b71d667c96137faeee75}{Csd\+Xor\+Mask\+Size}}~501
\end{DoxyCompactItemize}
\doxysubsubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
void \mbox{\hyperlink{format__csd_8c_ac51746f5cf90188f494419ffe291ce59}{Build\+Decryption\+Table}} (int seed)
\item 
unsigned char \mbox{\hyperlink{format__csd_8c_a50f9ec4268b8a349c4519d0a91ae9c21}{Decode\+Csd\+Byte}} (long file\+Offset, unsigned char val, int type)
\item 
char \mbox{\hyperlink{format__csd_8c_a13d793c9fa7f0366e371e2ba5bc795ce}{read\+Csd}} (\mbox{\hyperlink{embroidery_8h_a168c2ed6c7e17dd1aa7755aabc1db314}{Emb\+Pattern}} $\ast$pattern, FILE $\ast$file)
\item 
char \mbox{\hyperlink{format__csd_8c_ac48ab7a06130111eabb754be9de5089b}{write\+Csd}} (\mbox{\hyperlink{embroidery_8h_a168c2ed6c7e17dd1aa7755aabc1db314}{Emb\+Pattern}} $\ast$pattern, FILE $\ast$file)
\end{DoxyCompactItemize}
\doxysubsubsection*{Variables}
\begin{DoxyCompactItemize}
\item 
char \mbox{\hyperlink{format__csd_8c_a423c4a85e6e184bafb11931bf48eb6d1}{\+\_\+sub\+Mask}} \mbox{[}\mbox{\hyperlink{format__csd_8c_a4fcf3ace27e69d89af9b5e3e786c7fbe}{Csd\+Sub\+Mask\+Size}}\mbox{]}
\item 
char \mbox{\hyperlink{format__csd_8c_aff300a9cd128bc0dd787d94b4dc9dca6}{\+\_\+xor\+Mask}} \mbox{[}\mbox{\hyperlink{format__csd_8c_af849ef7c88e1b71d667c96137faeee75}{Csd\+Xor\+Mask\+Size}}\mbox{]}
\item 
const unsigned char \mbox{\hyperlink{format__csd_8c_a8088700999062a5c76345d7a8901c69b}{csd\+\_\+decrypt\+Array}} \mbox{[}$\,$\mbox{]}
\end{DoxyCompactItemize}


\doxysubsubsection{Detailed Description}
The Singer Embroidery Format (.csd) \index{csd@{csd}} \index{Singer@{Singer}}

Stitch Only Format. 

\doxysubsubsection{Macro Definition Documentation}
\mbox{\Hypertarget{format__csd_8c_a4fcf3ace27e69d89af9b5e3e786c7fbe}\label{format__csd_8c_a4fcf3ace27e69d89af9b5e3e786c7fbe}} 
\index{format\_csd.c@{format\_csd.c}!CsdSubMaskSize@{CsdSubMaskSize}}
\index{CsdSubMaskSize@{CsdSubMaskSize}!format\_csd.c@{format\_csd.c}}
\doxyparagraph{\texorpdfstring{CsdSubMaskSize}{CsdSubMaskSize}}
{\footnotesize\ttfamily \#define Csd\+Sub\+Mask\+Size~479}

\mbox{\Hypertarget{format__csd_8c_af849ef7c88e1b71d667c96137faeee75}\label{format__csd_8c_af849ef7c88e1b71d667c96137faeee75}} 
\index{format\_csd.c@{format\_csd.c}!CsdXorMaskSize@{CsdXorMaskSize}}
\index{CsdXorMaskSize@{CsdXorMaskSize}!format\_csd.c@{format\_csd.c}}
\doxyparagraph{\texorpdfstring{CsdXorMaskSize}{CsdXorMaskSize}}
{\footnotesize\ttfamily \#define Csd\+Xor\+Mask\+Size~501}



\doxysubsubsection{Function Documentation}
\mbox{\Hypertarget{format__csd_8c_ac51746f5cf90188f494419ffe291ce59}\label{format__csd_8c_ac51746f5cf90188f494419ffe291ce59}} 
\index{format\_csd.c@{format\_csd.c}!BuildDecryptionTable@{BuildDecryptionTable}}
\index{BuildDecryptionTable@{BuildDecryptionTable}!format\_csd.c@{format\_csd.c}}
\doxyparagraph{\texorpdfstring{BuildDecryptionTable()}{BuildDecryptionTable()}}
{\footnotesize\ttfamily void Build\+Decryption\+Table (\begin{DoxyParamCaption}\item[{int}]{seed }\end{DoxyParamCaption})}

\mbox{\Hypertarget{format__csd_8c_a50f9ec4268b8a349c4519d0a91ae9c21}\label{format__csd_8c_a50f9ec4268b8a349c4519d0a91ae9c21}} 
\index{format\_csd.c@{format\_csd.c}!DecodeCsdByte@{DecodeCsdByte}}
\index{DecodeCsdByte@{DecodeCsdByte}!format\_csd.c@{format\_csd.c}}
\doxyparagraph{\texorpdfstring{DecodeCsdByte()}{DecodeCsdByte()}}
{\footnotesize\ttfamily unsigned char Decode\+Csd\+Byte (\begin{DoxyParamCaption}\item[{long}]{file\+Offset,  }\item[{unsigned char}]{val,  }\item[{int}]{type }\end{DoxyParamCaption})}

\mbox{\Hypertarget{format__csd_8c_a13d793c9fa7f0366e371e2ba5bc795ce}\label{format__csd_8c_a13d793c9fa7f0366e371e2ba5bc795ce}} 
\index{format\_csd.c@{format\_csd.c}!readCsd@{readCsd}}
\index{readCsd@{readCsd}!format\_csd.c@{format\_csd.c}}
\doxyparagraph{\texorpdfstring{readCsd()}{readCsd()}}
{\footnotesize\ttfamily char read\+Csd (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{embroidery_8h_a168c2ed6c7e17dd1aa7755aabc1db314}{Emb\+Pattern}} $\ast$}]{pattern,  }\item[{FILE $\ast$}]{file }\end{DoxyParamCaption})}

\mbox{\Hypertarget{format__csd_8c_ac48ab7a06130111eabb754be9de5089b}\label{format__csd_8c_ac48ab7a06130111eabb754be9de5089b}} 
\index{format\_csd.c@{format\_csd.c}!writeCsd@{writeCsd}}
\index{writeCsd@{writeCsd}!format\_csd.c@{format\_csd.c}}
\doxyparagraph{\texorpdfstring{writeCsd()}{writeCsd()}}
{\footnotesize\ttfamily char write\+Csd (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{embroidery_8h_a168c2ed6c7e17dd1aa7755aabc1db314}{Emb\+Pattern}} $\ast$}]{pattern,  }\item[{FILE $\ast$}]{file }\end{DoxyParamCaption})}



\doxysubsubsection{Variable Documentation}
\mbox{\Hypertarget{format__csd_8c_a423c4a85e6e184bafb11931bf48eb6d1}\label{format__csd_8c_a423c4a85e6e184bafb11931bf48eb6d1}} 
\index{format\_csd.c@{format\_csd.c}!\_subMask@{\_subMask}}
\index{\_subMask@{\_subMask}!format\_csd.c@{format\_csd.c}}
\doxyparagraph{\texorpdfstring{\_subMask}{\_subMask}}
{\footnotesize\ttfamily char \+\_\+sub\+Mask\mbox{[}\mbox{\hyperlink{format__csd_8c_a4fcf3ace27e69d89af9b5e3e786c7fbe}{Csd\+Sub\+Mask\+Size}}\mbox{]}}

\mbox{\Hypertarget{format__csd_8c_aff300a9cd128bc0dd787d94b4dc9dca6}\label{format__csd_8c_aff300a9cd128bc0dd787d94b4dc9dca6}} 
\index{format\_csd.c@{format\_csd.c}!\_xorMask@{\_xorMask}}
\index{\_xorMask@{\_xorMask}!format\_csd.c@{format\_csd.c}}
\doxyparagraph{\texorpdfstring{\_xorMask}{\_xorMask}}
{\footnotesize\ttfamily char \+\_\+xor\+Mask\mbox{[}\mbox{\hyperlink{format__csd_8c_af849ef7c88e1b71d667c96137faeee75}{Csd\+Xor\+Mask\+Size}}\mbox{]}}

\mbox{\Hypertarget{format__csd_8c_a8088700999062a5c76345d7a8901c69b}\label{format__csd_8c_a8088700999062a5c76345d7a8901c69b}} 
\index{format\_csd.c@{format\_csd.c}!csd\_decryptArray@{csd\_decryptArray}}
\index{csd\_decryptArray@{csd\_decryptArray}!format\_csd.c@{format\_csd.c}}
\doxyparagraph{\texorpdfstring{csd\_decryptArray}{csd\_decryptArray}}
{\footnotesize\ttfamily const unsigned char csd\+\_\+decrypt\+Array\mbox{[}$\,$\mbox{]}}

{\bfseries Initial value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{= \{}
\DoxyCodeLine{    0x43, 0x6E, 0x72, 0x7A, 0x76, 0x6C, 0x61, 0x6F, 0x7C, 0x29, 0x5D, 0x62, 0x60, 0x6E, 0x61, 0x62,}
\DoxyCodeLine{    0x20, 0x41, 0x66, 0x6A, 0x3A, 0x35, 0x5A, 0x63, 0x7C, 0x37, 0x3A, 0x2A, 0x25, 0x24, 0x2A, 0x33,}
\DoxyCodeLine{    0x00, 0x10, 0x14, 0x03, 0x72, 0x4C, 0x48, 0x42, 0x08, 0x7A, 0x5E, 0x0B, 0x6F, 0x45, 0x47, 0x5F,}
\DoxyCodeLine{    0x40, 0x54, 0x5C, 0x57, 0x55, 0x59, 0x53, 0x3A, 0x32, 0x6F, 0x53, 0x54, 0x50, 0x5C, 0x4A, 0x56,}
\DoxyCodeLine{    0x2F, 0x2F, 0x62, 0x2C, 0x22, 0x65, 0x25, 0x28, 0x38, 0x30, 0x38, 0x22, 0x2B, 0x25, 0x3A, 0x6F,}
\DoxyCodeLine{    0x27, 0x38, 0x3E, 0x3F, 0x74, 0x37, 0x33, 0x77, 0x2E, 0x30, 0x3D, 0x34, 0x2E, 0x32, 0x2B, 0x2C,}
\DoxyCodeLine{    0x0C, 0x18, 0x42, 0x13, 0x16, 0x0A, 0x15, 0x02, 0x0B, 0x1C, 0x1E, 0x0E, 0x08, 0x60, 0x64, 0x0D,}
\DoxyCodeLine{    0x09, 0x51, 0x25, 0x1A, 0x18, 0x16, 0x19, 0x1A, 0x58, 0x10, 0x14, 0x5B, 0x08, 0x15, 0x1B, 0x5F,}
\DoxyCodeLine{    0xD5, 0xD2, 0xAE, 0xA3, 0xC1, 0xF0, 0xF4, 0xE8, 0xF8, 0xEC, 0xA6, 0xAB, 0xCD, 0xF8, 0xFD, 0xFB,}
\DoxyCodeLine{    0xE2, 0xF0, 0xFE, 0xFA, 0xF5, 0xB5, 0xF7, 0xF9, 0xFC, 0xB9, 0xF5, 0xEF, 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